<?php
use backend\models\RoleForm;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;

$this->title = '添加角色';

$this->params['breadcrumbs'][]=Yii::$app->controller->id;

$this->params['breadcrumbs'][]=$this->title;

/** @var  $form  */
$form = ActiveForm::begin();
/** @var $model backend\models\RoleForm */
echo $form->field($model,'name');
echo $form->field($model,'description');
echo $form->field($model,'permissions')->checkboxList(RoleForm::allPermissions());
echo Html::submitButton('提交',['class'=>'btn btn-info']);
ActiveForm::end();
